home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr40 / x1j4_src.zip / IPV.H < prev    next >
Text File  |  1995-01-20  |  3KB  |  94 lines

  1. /*****************************************************************************/
  2. /*                                              */
  3. /*                                         */
  4. /*    *****              *****                      */
  5. /*     *****            *****                         */
  6. /*       *****          *****                         */
  7. /*         *****        *****                         */
  8. /*  ***************      ***************                     */
  9. /*  *****************    *****************                     */
  10. /*  ***************      ***************                     */
  11. /*         *****        *****       TheNet                    */
  12. /*       *****          *****       Portable. Compatible.         */
  13. /*     *****            *****       Public Domain             */
  14. /*    *****              *****    G8KBB                  */
  15. /*                                         */
  16. /* This software is public domain ONLY for non commercial use                */
  17. /*                                                                           */
  18. /*                                         */
  19. /*****************************************************************************/
  20.  
  21. /* Level 3, Internet Gateway variables and externals                 */
  22. /* Version 1.00                                                              */
  23. /* Dave Roberts G8KBB, 7, Rowanhayes Close, Ipswich, England             */
  24. /* 10-April-91                                     */
  25. /* This software is released into the public domain on the understanding
  26.  * that it is to be used only for non life threatening, amateur, non 
  27.  * commercial purposes only. 
  28.  * It has been written expressly for use in self tuition of
  29.  * people in amateur radio communications only. It is NOT claimed that this
  30.  * software works correctly. 
  31.  *
  32.  * USELONG, if defined, causes long integers to be used where appropriate
  33.  * so failing to define it will avoid longs completely !
  34.  *
  35.  * Released as TheNet X-1J, September 1993
  36.  *
  37.  * EXTERN is used to conditionally create variables by reuse of header file
  38.  *
  39.  * Released as TheNet X-1J release 4, January 1995
  40.  */
  41.  
  42. /* SNMP MIB variables, used for statistics and control. See RFC 1066 */
  43. EXTERN struct mib_entry Ip_mib[NUMIPMIB+1];
  44. #ifdef ICMPSTATS
  45. EXTERN struct mib_entry Icmp_mib[NUMICMPMIB+1];
  46. #endif
  47.  
  48.  
  49. EXTERN lhtyp IP_Routes;                /* Routing table */
  50. EXTERN struct rt_cache IP_Route_Cache;
  51. EXTERN lhtyp iprxfl;
  52. EXTERN lhtyp arprxfl;
  53. EXTERN lhtyp Arp_tab;
  54. EXTERN ipaddr my_ip_addr, bcast_ip_addr;
  55.  
  56. #ifndef USELONG
  57. EXTERN CK_SUM ip_cksum; /* static used to compute ip checksums when not using longs */
  58. #endif
  59.  
  60. extern ipaddr DEFMYIPADDR, DEFIPBCAST;
  61. extern unsigned char DEFIPTTL, DEFIPL2MODES;
  62. extern unsigned char DEFIPENABLE;
  63.  
  64. /* externals in other thenet modules ...
  65.  */
  66. extern char l4pidx;
  67. extern char l4pcid;
  68. extern char l4ahd2;
  69. extern char l4ahd3;
  70. extern char l4aopc;
  71. extern lhtyp l3txl;
  72. extern nodtyp *despoi;
  73. extern l2ltyp lnktbl[];
  74. extern l2ltyp *lnkpoi;
  75. extern unsigned nmbfre;
  76. extern char myid[];
  77.  
  78. #ifdef BANKED
  79. EXTERN IP ip;                /* structure for decoded ip header  */
  80. EXTERN unsigned short id_cntr;        /* datagram serial number for ip_send */
  81. EXTERN ARP arp;
  82. #else
  83. extern ARP arp;
  84. #endif
  85.  
  86. EXTERN unsigned ARPrunning, ARPtimer;
  87. EXTERN unsigned char ARPcounter;
  88.  
  89. #ifdef MOD_MTU
  90. extern unsigned mtu_ip0;
  91. extern unsigned mtu_ip1;
  92. extern unsigned mtu_ipn;
  93. #endif
  94.